package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CsgoTestMapper;
import com.ruoyi.system.domain.CsgoTest;
import com.ruoyi.system.service.ICsgoTestService;

/**
 * 测试Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-11
 */
@Service
public class CsgoTestServiceImpl implements ICsgoTestService 
{
    @Autowired
    private CsgoTestMapper csgoTestMapper;

    /**
     * 查询测试
     * 
     * @param id 测试主键
     * @return 测试
     */
    @Override
    public CsgoTest selectCsgoTestById(Long id)
    {
        return csgoTestMapper.selectCsgoTestById(id);
    }

    /**
     * 查询测试列表
     * 
     * @param csgoTest 测试
     * @return 测试
     */
    @Override
    public List<CsgoTest> selectCsgoTestList(CsgoTest csgoTest)
    {
        return csgoTestMapper.selectCsgoTestList(csgoTest);
    }

    /**
     * 新增测试
     * 
     * @param csgoTest 测试
     * @return 结果
     */
    @Override
    public int insertCsgoTest(CsgoTest csgoTest)
    {
        return csgoTestMapper.insertCsgoTest(csgoTest);
    }

    /**
     * 修改测试
     * 
     * @param csgoTest 测试
     * @return 结果
     */
    @Override
    public int updateCsgoTest(CsgoTest csgoTest)
    {
        return csgoTestMapper.updateCsgoTest(csgoTest);
    }

    /**
     * 批量删除测试
     * 
     * @param ids 需要删除的测试主键
     * @return 结果
     */
    @Override
    public int deleteCsgoTestByIds(Long[] ids)
    {
        return csgoTestMapper.deleteCsgoTestByIds(ids);
    }

    /**
     * 删除测试信息
     * 
     * @param id 测试主键
     * @return 结果
     */
    @Override
    public int deleteCsgoTestById(Long id)
    {
        return csgoTestMapper.deleteCsgoTestById(id);
    }
}
